<template>
  <div class="header">
    <mt-header :title="headertitle">
      <mt-button icon="back" slot="left" @click="goBack()" v-show="backIconshow">返回</mt-button>
      <mt-button icon="more" slot="right"></mt-button>
    </mt-header>
  </div>
</template>

<script>
import { mapGetters } from "vuex";

export default {
  data() {
    return {};
  },
  props: {
    commData: {
      type: Object
    }
  },
  computed: mapGetters({
    headertitle: "headerTitle",
    backIconshow: "backIconshow"
  }),
  methods: {
    goBack() {
      let headerTitle = this.headerTitle;
      console.log(headerTitle);
      history.go(-1);
    }
  }
};
</script>

